<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商户主页 - 未央店</title>
<link rel="stylesheet" href="css/general.css" type="text/css" />
<link rel="stylesheet" href="css/layout.css" type="text/css" />
<link rel="stylesheet" href="css/shanghu_page.css" type="text/css" />
<link rel="stylesheet" href="css/plugin_baixingfeedback_css/feedback.css" type="text/css" />
<link rel="shortcut icon" href="images/favicon.ico" />

<script type="text/javascript" src="js/jquery_1.7.1.js"></script>
<script type="text/javascript" src="js/plugin_DOMWindow_js/jquery.DOMwindow.js"></script>
<script type="text/javascript" src="js/sel_content_detail.js"></script>
<script type="text/javascript" src="js/sel_industry.js"></script>
<script type="text/javascript" src="js/plugin_baixingfeedback_js/baixing_feedback.js"></script>
<script type="text/javascript" src="js/shanghu_tab.js"></script>
<script type="text/javascript" src="js/plugin_raty_js/jquery.raty.min.js"></script>
<script type="text/javascript" src="js/dianping.js"></script>

<script type="text/javascript">
//这段js是为了设置星级评分插件
var starNum=0;
$(function(){

$('#star').raty({
  click: function(score, evt) {
      starNum=score; //记录下用户打的分数
	  $("#check_star").hide();
  },
  hints   : ['1', '2', '3', '4', '5'],
  size: 24,
  width:150,
  starOff: 'star-off-big.png',
  starOn: 'star-on-big.png'
});

})
</script>
</head>
<?php
$fromLM = '6';
if( isset($_GET['fromLM']) )
{
	$fromLM = $_GET['fromLM'];
}
$LM_Pic = '';
$LM_Name = '';
$shanghu_list = '';
switch ($fromLM)
{
	case '1':  //代表来自于id为1的LM，即上海大学（宝山校区）
		$LM_Pic = 'shangda_logo.jpg';
		$LM_Name = '上海大学<span style="font-size:14px;font-weight:light;">（宝山校区）</span>';
		$shanghu_list = 'shangda_baoshan_shanghulist.php';
	    break;

	case '6':  //代表来自于id为6的LM，即辽宁师范大学
		$LM_Pic = '3_02.gif';
		$LM_Name = '辽宁师范大学';
		$shanghu_list = 'liaoshi_shanghulist.php';
	    break;

	default:
		$LM_Pic = '3_02.gif';
		$LM_Name = '辽宁师范大学';
		$shanghu_list = 'liaoshi_shanghulist.php';
		break;
}
?>
<body>
<div id="wrap">
<div id="reg">
</div>
<div id="container">
  <div class="sep"></div>

  <div id="header">
    <div id="logo">
	  <a href="http://127.0.0.1"><img src="images/jiayi_logo.jpg" width="200px" height="75px" alt="logo" style="border:0px;"/></a>
	</div>

	<div id="city_change">
	  <div id="city_pic">
	    <img src="images/<?php echo $LM_Pic; ?>" width="140px" height="70px" />
      </div>
	  <div id="city_box">
	    <br /><span style="font-size:20px; font-weight:bold; margin-left:20px;"><?php echo $LM_Name; ?></span><br />
		<a href="#more_city" id="change"><span style="margin-left:60px;padding-right:12px;background:url(images/g.header.v201203221438.png) no-repeat right -480px ;">
		切换学校</span></a>
        <script type="text/javascript"> 
		$('#change').openDOMWindow({   //对弹出框DOMWindow进行设置
		eventType:'click', 
		loader:1, 
		loaderImagePath:'animationProcessing.gif', 
		loaderHeight:0, 
		loaderWidth:0,
		height:330,
		width:500,
		}); 
		</script>

		<!--更多城市-->
		<div id="more_city">
		  <div style="float:right;">点击框外任意处退出X</div>
		  <div class="sep" style="height:5px;"></div>
		  <div id="school_list">
		    <p style="font-size:20px; font-weight:bold;">上海：</p><br />
			<ul>
			  <li><a href="http://127.0.0.1/shangda_baoshan.php">上海大学（宝山校区）</a></li>
			  <li><a href="#">复旦大学</a></li>
			  <li><a href="#">同济大学（四平校区）</a></li>
			  <li><a href="#">上海外国语大学</a></li>
			</ul>
		  </div>
		  
		  <div id="school_list">
		    <p style="font-size:20px; font-weight:bold;">大连：</p><br />
			<ul>
			  <li><a href="http://127.0.0.1/liaoshi.php">辽宁师范大学</a></li>
			  <li><a href="#">东北财经大学</a></li>
			  <li><a href="#">大连理工大学</a></li>
			  <li><a href="#">大连海事大学</a></li>
			</ul>
		  </div>
	    </div>
		
	  </div>
	</div>
	
	<div id="search">
	  <form action="http://127.0.0.1/searchbox.php" method="get" target="_blank">
	    <input id="input" type="text" name="input" />
		<input type="hidden" name="fromLM" value="<?php echo $fromLM;?>" />
		<input type="hidden" name="page" value="1" />
		<input id="button" type="submit" name="" value="" onclick="if(input.value==''){alert('您还没有输入任何内容');return false;}else{return true;}"/>
	  
	  </form>
	</div>
  </div>
  
  <div class="sep"></div>

  <div id="main">
  <div id="left">
	  <div class="card industry_select">
		<div class="title1">
		  <span>选择行业</span>
		</div>
		<div class="content">
		  <ul>
		    <li><div class="no_border"><div class="word">休闲旅游</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=2&page=1&industryName=KTV">KTV</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=3&page=1&industryName=咖啡厅">咖啡厅</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=4&page=1&industryName=酒吧">酒吧</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=5&page=1&industryName=电影院">电影院</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=6&page=1&industryName=景点">景点</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=7&page=1&industryName=足疗按摩">足疗按摩</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=8&page=1&industryName=游乐游艺">游乐游艺</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=10&page=1&industryName=洗浴">洗浴</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=12&page=1&industryName=DIY手工坊">DIY手工坊</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=13&page=1&industryName=温泉">温泉</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=14&page=1&industryName=滑雪场">滑雪场</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=15&page=1&industryName=旅行社">旅行社</a></li>
				</ul>
			  </div>
			</li>
			<li><div class="no_border"><div class="word">运动健身</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=17&page=1&industryName=羽毛球馆">羽毛球馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=18&page=1&industryName=台球馆">台球馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=20&page=1&industryName=网球场">网球场</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=21&page=1&industryName=保龄球馆">保龄球馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=22&page=1&industryName=乒乓球馆">乒乓球馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=23&page=1&industryName=瑜伽">瑜伽</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=25&page=1&industryName=舞蹈">舞蹈</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=26&page=1&industryName=游泳馆">游泳馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=27&page=1&industryName=健身馆">健身馆</a></li>
				</ul>
			  </div>
			</li>
			<li><div class="no_border"><div class="word">宾馆住宿</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=29&page=1&industryName=日租">日租</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=30&page=1&industryName=长租">长租</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=31&page=1&industryName=经济型宾馆">经济型宾馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=32&page=1&industryName=连锁宾馆">连锁宾馆</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=33&page=1&industryName=星级宾馆">星级宾馆</a></li>
				</ul>
			  </div>
			</li>
			<li><div class="no_border"><div class="word">教育培训</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=35&page=1&industryName=英语培训">英语培训</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=36&page=1&industryName=IT培训">IT培训</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=37&page=1&industryName=留学">留学</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=38&page=1&industryName=考研培训">考研培训</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=39&page=1&industryName=小语种培训">小语种培训</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=40&page=1&industryName=MBA培训">MBA培训</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=41&page=1&industryName=乐器培训">乐器培训</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=42&page=1&industryName=公务员培训">公务员培训</a></li>
				</ul>
			  </div>
			</li>
			<li><div class="no_border"><div class="word">购物</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=44&page=1&industryName=品牌折扣店">品牌折扣店</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=46&page=1&industryName=眼镜店">眼镜店</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=47&page=1&industryName=化妆品">化妆品</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=48&page=1&industryName=蛋糕店">蛋糕店</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=49&page=1&industryName=运动户外">运动户外</a></li>
				</ul>
			  </div>
			</li>
			<li><div class="no_border"><div class="word">爱美丽</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=51&page=1&industryName=美发">美发</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=52&page=1&industryName=美甲">美甲</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=53&page=1&industryName=美容/SPA">美容/SPA</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=54&page=1&industryName=瘦身纤体">瘦身纤体</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=55&page=1&industryName=个性写真">个性写真</a></li>
				</ul>
			  </div>
			</li>
			<li><div class="no_border"><div class="word">生活服务</div><div class="arrow">></div></div>
			  <div class="content_detail">
			    <ul>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=57&page=1&industryName=餐饮">餐饮</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=60&page=1&industryName=快照/复印">快照/复印</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=61&page=1&industryName=齿科">齿科</a></li>
				  <li><a target="_blank" href="http://127.0.0.1/<?php echo $shanghu_list; ?>?landMarklBuildingId=<?php echo $fromLM;?>&industryId=62&page=1&industryName=搬家">搬家</a></li>
				</ul>
			  </div>
			</li>
			<!--li><div class="no_border"><div class="word">更多</div><div class="arrow">></div></div>
			  <div class="content_detail"></div>
			</li-->
		  </ul>
		</div>
	  </div> <!--card结束-->
	</div><!--left结束-->
	<?php
	require_once(dirname(__FILE__)."/../include/httpclient.php");

	  if( !isset( $_GET['email_account'] ) ) //说明访问这个页面时没有传email_account参数。
	  {
		  echo '页面不存在，缺少账户email，即email_account参数。';
		  exit();
	  }
	  //到这里，说明访问该页面时带有email_account参数。
	  //由email_account得到partyId。
	  $email_account = $_GET['email_account'];

	  $arg = array( 'email_account' => $email_account );
      $partyid = call_serviceurl(32,$arg);

	  if( $partyid == '' )
	  {
		  //没有partyId，就肯定没有productId。所以这个页面不存在。
		  echo '没有找到该商户主页，可能是email账户不正确，或者该账户没有跟商户关联。';
		  exit();
	  }

	  //由partyId再去得到productId。
	  $arg = array( 'act' => 'init_get_productid',
					'partyid' => $partyid
				  );
	  $r = call_serviceurl( 31, $arg );
	  $productid;
	  if( $r == false ) //没能得到任何的productid，也没能生成productid
	  {
		  //跳转到异常处理页面。
		  echo '<script type="text/javascript">';
		  echo 'setTimeout("location=\'./exception.php\'");';
		  echo '</script>';
		  exit();
	  }
	  else
	  {
		  $productid = $r;
	  }

	  //至此，得到了partyId和productId。
	?>
	<div id="right">
	  <div class="card">
	    <div class="title1"><span>商家基本信息</span></div>
		<div class="content_cleancss" style="width:780px; margin-top:5px; margin-left:5px;"><!--content_cleancss这个样式的目的是为了恢复ul和li的默认样式。-->
		  <?php  //根据partyid得到商户的基本信息，即是party表的description字段
		  require_once(dirname(__FILE__)."/../include/httpclient.php");
		  
		  //调用serviceurl，得到partyid的商户基本信息
		  $arg = array( 'partyid' => $partyid );
		  $r = call_serviceurl( 28, $arg );
		  echo $r;
		  ?>
		</div>
	  </div>
	  
	  <div class="sep"></div>
	  
	  <div id="shanghu_tab">
        <ul>
		  <li class="tab_sel">详细信息</li>
		  <li id="all_dianping">全部点评</li>
		  <li>我要点评</li>
		</ul>	  
	  </div>
	  
	  <div id="right_down">
		  <div class="card card_sel">
			<div class="title1"><span>图片、产品/服务信息</span></div>
			  <div class="content_cleancss" style="width:780px; margin-top:5px; margin-left:5px;"><!--content_cleancss这个样式的目的是为了恢复ul和li的默认样式。-->
			  <?php  //根据productid得到商户的产品/服务信息，即是product表的description字段		  
			  
			  $arg = array( 'productid' => $productid );
			  $r = call_serviceurl( 29, $arg );
			  echo $r;
			  ?>
			</div>
		  </div>

		  <div class="card"  style="padding-bottom:20px;">
			<div class="title1"><span>全部点评</span></div>
		    <ul id="dianping_ul">
			  <!--li>
			    <img src="http://timg.ddmapimg.com/user/bbshead/small/01.gif" width="48" height="48" alt="">
				<div class="dp_li_right">
				  <div class="dp_uname"><span>冷漠的骑士</span></div>
				  <div class="dp_star"><span class="star5"></span></div>
				  <div class="dp_cont"><span>以前从来没吃过东北菜、后来认识了一个东北的朋友...连东北人都常来估计味道还是挺地道的吧，店里生意还不错人挺多的</span></div>
				  <div class="dp_time"><span>2012-07-19 11:37</span></div>
				</div>
			  </li>
			  
			  <li>
			    <img src="http://timg.ddmapimg.com/user/bbshead/small/01.gif" width="48" height="48" alt="">
				<div class="dp_li_right">
				  <div class="dp_uname"><span>冷漠的骑士</span></div>
				  <div class="dp_star"><span class="star3"></span></div>
				  <div class="dp_cont"><span>以前从来没吃过东北菜、后来认识了一个东北的朋友...连东北人都常来估计味道还是挺地道的吧，店里生意还不错人挺多的以前从来没吃过东北菜、后来认识了一个东北的朋友...连东北人都常来估计味道还是挺地道的吧，店里生意还不错人挺多的以前从来没吃过东北菜、后来认识了一个东北的朋友...连东北人都常来估计味道还是挺地道的吧，店里生意还不错人挺多的</span></div>
				  <div class="dp_time"><span>2012-07-19 11:37</span></div>
				</div>
			  </li>
			  
			  <li>
			    <img src="http://timg.ddmapimg.com/user/bbshead/small/01.gif" width="48" height="48" alt="">
				<div class="dp_li_right">
				  <div class="dp_uname"><span>冷漠的骑士</span></div>
				  <div class="dp_star"><span class="star4"></span></div>
				  <div class="dp_cont"><span>以前从来没吃过东北菜、后来认识了一个东北的朋友...连东北人都常来估计味道还是挺地道的吧，店里生意还不错人挺多的</span></div>
				  <div class="dp_time"><span>2012-07-19 11:37</span></div>
				</div>
			  </li-->
			  <script type="text/javascript">
			  <?php echo 'var party_email = '.'"'.$_GET['email_account'].'";'; ?>
			  $(function(){
			  $("#all_dianping").click(function(){
			  
			  //if($("ul#dianping_ul").children("li").length == 0) //说明dianping_ul下面没有一个li，即还没得到一个点评。
			  //上面一句的if注释掉了，那么每点一次#all_dianping，都会刷新一次去数据库取点评，不管现在是不是已经有若干点评了。
			  { 
			    //alert("取一次点评");
			    $("ul#dianping_ul").empty();
				$("div.pagenum ul").empty();
				get_dianping( $("ul#dianping_ul"), party_email, '1');
			  }
			  });
			  
			  });

			  function jump_to_page( page )
			  {
				//alert("取一次点评");
				window.location= "#shanghu_tab"
			    $("ul#dianping_ul").empty();
				$("div.pagenum ul").empty();
				get_dianping( $("ul#dianping_ul"), party_email, page);
			  }
			  </script>
			</ul>
			<div class="pagenum">
			  <ul>
			  </ul>
			</div>
		  </div>

		  <div class="card">
			<div class="title1"><span>我要点评</span></div>
			  <span style="float:left;height:26px; line-height:26px; margin-left:20px; margin-top:20px; font-size:12px;">（带星号<em style="color:red">*</em>为必填项）</span>
			  <div class="cf"></div>
			  <span style="float:left; height:26px; line-height:26px; margin-left:20px; margin-top:20px; font-size:14px;">总体打分<em style="color:red">*</em>：</span>
			  <div id="star" style="float:left; margin-top:20px;"></div>
			  <div id="check_star" style="display:none; border: 1px solid #C03; width:80px; height:24px; color:#C03; float:left; margin-top:20px; line-height:24px; text-align:center;">您还没有打分</div>
			  <div class="cf"></div>
			  <span style="float:left; height:26px; line-height:26px; margin-left:50px; margin-top: 50px; font-size:14px;">点评<em style="color:red">*</em>：</span>
			  <textarea name="dianping_cont" id="dianping_cont" style="float:left; width:350px; height:150px; resize:none; border:1px solid #CCC; margin-top:20px;"></textarea>
			  <div id="check_text" style="display:none; border: 1px solid #C03; width:120px; height:48px; color:#C03; float:left; margin:50px 0px 0px 20px; line-height:24px; text-align:left; padding-left:5px;">至少需要输入10个字符，首尾的空格不算。</div>
			  <div class="cf"></div>
			  <div id="dianping_tip" style="color:#888; width:350px; height:20px; line-height:20px; margin-left:101px;margin-top:5px;">10-1000字（请勿发表反动、色情、暴力等语言）</div>
			  <input type="submit" id="dianping_sub" style="margin-bottom:40px;"/>
			  <script type="text/javascript">
			  //此段js，为的是判断点评框里的字数。从而改变点评框下面的提示。
			  function changeTip_by_val()
			  {
				  var content = $.trim($('#dianping_cont').val()); //评论字符串首尾的空格会被去除，不占字数，也不会被传到数据库。
				  if ( 0 >= content.length ) //即用户还没有输入任何字符
				  {
					$("#dianping_tip").html( "10-1000字（请勿发表反动、色情、暴力等语言）" );
				  }
				  else if( 0 < content.length && content.length < 10 ) //用户输入了1~9个字符。
				  {
					word_need = 10-content.length; //还需要再输入的字符个数。
					$("#dianping_tip").html('您还需要输入<span style="color:red; font-weight:bold;">' + word_need + '</span>个字（请勿发表反动、色情、暴力等语言）');
				  }
				  else if( 10 <= content.length && content.length <=1000 ) //用户输入了10~1000个字符。
				  {
					word_max = 1000 - content.length; //还可以再输入的字符个数。
					$("#dianping_tip").html('您还可以输入<span style="color:green; font-weight:bold;">' + word_max + '</span>个字（请勿发表反动、色情、暴力等语言）');
				  }
				  else //用户输入了1001或更多的字符。
				  {
					$("#dianping_cont").val( content.substr( 0, 1000 ) );
				  }
			  }
			  
			  $(function(){
			  $("#dianping_cont").keyup(function(){
				changeTip_by_val();
			  }).click(function(){
			    changeTip_by_val();
			  }).blur(function(){
				changeTip_by_val();
				$("#check_text").hide();
			  });
			  });
			  </script>
			  
			  <script type="text/javascript">
			  
			  //此段js，为dianping_sub按钮写点击事件，调用函数。
			  $(function(){
			  $('#dianping_sub').click(function(){
				//检查用户点评的完整性和合法性
				//检查有没有星级打分
				if ( 0 == starNum )
				{
					$("#check_star").show();
					return false;
				}
				//检查点评内容字数是否过少
				var text_num = $.trim($('#dianping_cont').val());
				if( 0 <= text_num.length && text_num.length <= 9 ) //字数在0~9，过少。
				{
					$("#check_text").show();
					return false;
				}
				//检查都通过了。
				var r = send_dianping(starNum, $("#dianping_cont").val(), party_email);
				if( true == r ) //写点评成功
				{
					alert( '点评成功，请查看“全部点评”' );
				}
				else
				{
					alert( '点评失败，请重新点评，或联系管理员' );
				}
				//清空星级分数
				$('#star').raty('cancel');
				starNum = 0;
				//清空评论内容
				$("#dianping_cont").val('');
				//修改字符小tip
				changeTip_by_val();
				//触发“全部点评”的点击事件，让用户看到自己写的点评。
				$("#all_dianping").trigger("click");
				});
              });				
			  </script>
		  </div>
	  </div>
	</div>
  
  </div>

  <div class="sep"></div>

  <div id="footer">
    <ul>
		<li><a href="http://127.0.0.1/about.php?item=0" target=_blank>关于我们</a>|</li>
		<li><a href="http://127.0.0.1/about.php?item=1" target=_blank>联系我们</a>|</li>
		<li><a href="http://127.0.0.1/about.php?item=2" target=_blank>推广服务</a>|</li>
		<li><a href="http://127.0.0.1/about.php?item=3" target=_blank>人才招聘</a>|</li>
		<li><a href="http://127.0.0.1/about.php?item=4" target=_blank>友情链接</a></li>
    </ul>
	<br />
    Copyright(c) 2013 weiyangdian.com All Rights Reserved
  </div>
</div>
</div>

<!-- 这一段div是页面右侧的悬浮“反馈与建议” -->
<div class="fixedBtn">
	<a rel="nofollow" href="###" class="feedback" title="欢迎给JquerySchool找问题和提建议～">意见反馈</a>
	<a href="#top" class="top" title="回到顶部">回到顶部</a>
	<div class="feedbackTips fb-open hide green">
		反馈已发送！
	</div>
	<div class="feedbackCnt">
		<h3><cite class="red">* </cite>您对网站意见和建议：</h3>
		<form action="http://127.0.0.1/feedback.php" method="get" target="_blank">
			<textarea id="fb_text" name="feedbackCnt">提示：如果您能够留下联系方式，将有助于我们更好地处理问题，谢谢啊亲～</textarea>			
			<input id="real_sub" type="submit" name="" value="" style="display:none;"/>
			<span id="fb_sub" class="button button-green button-medium">提交反馈</span>
		</form>
	</div>
</div>
<!-- 这一段div是页面右侧的悬浮“反馈与建议”  -->

</body>
</html>